package guowei.guliorder.order.feign;

import guowei.guliorder.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("guliCart")
public interface CartFeign {

    @GetMapping("/cart/getOrderItems/{userkey}")
    public List<OrderItemVo> getOrderList(@PathVariable("userkey") String userkey);

    @GetMapping("/cart/getOrderItems")
    public List<OrderItemVo> getOrderListNoKey();

}
